/**
 * 
 */
package com.easidea.tim.dao.inventory;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springside.core.dao.extend.HibernateEntityExtendDao;

import com.easidea.tim.entity.inventory.CheckInOutItem;

/**
 * @author Harrison
 *
 */
public class CheckInOutItemDao extends HibernateEntityExtendDao<CheckInOutItem> {
	 @SuppressWarnings("unchecked")
		public List<CheckInOutItem> getItemsByOrderId(long orderId) {
			 Criteria ca = this.createUnDeletedCriteria();
			 ca.add(Restrictions.eq("checkInOut.id", orderId));
			 List result = ca.list();
			 return result;
		 }
}
